import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

//动态路由、其余路由可以省略
const routes = [
  {
    path: '/',
    name: 'login',
    component: () => import('@/views/Login.vue')
  },
  {

  	  path:"/customer",
  	  name:"customer",
  	  component:() => import('@/components/init_module/customer.vue'),
  },
  {
  	  path:"/supplier",
  	  name:"supplier",
  	  component:() => import('@/components/init_module/supplier.vue'),
  },
	{
  	  path:'/main',
  	  name:'main',
  	  component:() =>import('@/views/Main.vue')
  },{
	  path:"/good",
	  name:"good",
	  component:() => import('@/components/init_module/good.vue'),
  }

]

const router = new VueRouter({
  routes
})

export default router
